package com.jn.builder;

/**
 * 建造者模式
 *
 * @author 江南大学1033190417
 * @date 2022/4/11 19:14
 */
public abstract class AbstractHouse {

    //打地基
    public abstract void buildBasic();

    //砌墙
    public abstract void buildWalls();

    //封顶
    public abstract void roofed();

    public void build(){
        buildBasic();;
        buildWalls();
        roofed();
    }
}
